import cando1.Score;
import cando1.Student;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {

    public static void main(String[] args) {
        Student student = new Student();//实例化
/*
        student.name = "小明同学";
        student.age = 18;
        System.out.println(student.age);//通过点+关键字可以访问成员属性
        student.DoHomework();//通过点+关键字也可以访问成员方法
*/




        //Student primary = new Student();
        Student junior = new Student();//一个类可以进行多个实例化
        /*Student senior = new Student();
        senior.name = "大雄同学";
        senior.kiloGram = 66.1;
        System.out.println(senior.name+"的体重是"+senior.kiloGram+"kg");*/


        System.out.println(junior);//我们知道若我们直接打印对象就会出现：   类路径名@对象的hashcode值
        //我们为了改变此现象，需要重写toString方法
    }
}